<?php
/**
 * Created by PhpStorm.
 * User: wuxiaojie
 * Date: 2018/6/9
 * Time: 15:48
 */

if (!defined('IN_ANWSION')) {
    die;
}

class main extends AWS_CONTROLLER
{

    public function get_access_rule()
    {
        $rule_action['rule_type'] = 'white';

        if ($this->user_info['permission']['visit_question'] AND $this->user_info['permission']['visit_site'])
        {
            $rule_action['actions'][] = 'about';
            $rule_action['actions'][] = 'index';
        }
        return $rule_action;
    }

    //默认的首页

    public function index_action()
    {
        HTTP::redirect('/aomas/about/');
    }






}